//
//  MMFCMManager.h
//  mmosite
//
//  Created by aron on 2017/4/18.
//  Copyright © 2017年 qingot. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"

extern NSString *const kGCMMessageIDKey;
extern NSString *const kMMFCMMessageTitleKey;
extern NSString *const kMMFCMMessageUrlKey;
extern NSString *const kMMFCMMessageIDKey;
extern NSString *const kMMFCMMessageTypeKey;


@interface MMFCMManager : NSObject

AS_SINGLETON

@property (nonatomic, assign) BOOL isEnterFromBackground;

- (void)setupNotificationConfigWithApplication:(UIApplication *)application;
- (void)connectToFcm;
- (void)disconnect;

/**
 处理通知
 @param userInfo 通知信息
 */
- (void)handleNotification:(NSDictionary *)userInfo;

@end
